package com.demo.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.demo.api.Demo;
import entity.User;
import org.springframework.stereotype.Component;

import java.beans.DesignMode;

/**
 * @author DINGJIE
 * @version V1.0
 * @Description:
 * @date 2018/5/7 上午10:42
 */
@Service(version = "1.0.0")
public class DemoImp implements Demo {
    public int add(int a, int b) {
        System.out.println("producer a+b = " + (a + b));
        return a+b;

    }

    public User getUserById(int id) {
        return new User("Amy",30,1);
    }
}
